import request from '@/utils/request'

// 查询水质指标列表
export function listDispatchWaterQualityIndicators(query) {
  return request({
    url: '/system/dispatchWaterQualityIndicators/list',
    method: 'get',
    params: query
  })
}

// 查询水质指标详细
export function getDispatchWaterQualityIndicators(waterQualityIndicatorsId) {
  return request({
    url: '/system/dispatchWaterQualityIndicators/' + waterQualityIndicatorsId,
    method: 'get'
  })
}

// 新增水质指标
export function addDispatchWaterQualityIndicators(data) {
  return request({
    url: '/system/dispatchWaterQualityIndicators',
    method: 'post',
    data: data
  })
}

// 修改水质指标
export function updateDispatchWaterQualityIndicators(data) {
  return request({
    url: '/system/dispatchWaterQualityIndicators',
    method: 'put',
    data: data
  })
}

// 删除水质指标
export function delDispatchWaterQualityIndicators(waterQualityIndicatorsId) {
  return request({
    url: '/system/dispatchWaterQualityIndicators/' + waterQualityIndicatorsId,
    method: 'delete'
  })
}
